﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Pages_Agent_ContractItem" CodeBehind="ContractItem.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="using" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="Server">
    <a href="ContractList.aspx" title="Back Button"><span id="backbutton"></span></a>
    <a href="AgentItem.aspx" title="Add More Agents"><span id="addbutton"></span></a>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="Server">
    <div style="margin: 10px 3px 0 3px">
        <h1 style="text-indent: 10px">
            Add / Edit Contract</h1>
        <div class="item">
            <div class="label">
                Contract#:</div>
            <div class="field">
                <asp:TextBox ID="txtContractID" runat="server"></asp:TextBox></div>
        </div>
        <div class="item">
            <div class="label">
                Agent#:
            </div>
            <div class="field">
                <asp:DropDownList ID="ddlAgent" runat="server" AppendDataBoundItems="true">
                    <asp:ListItem Value="00000000-0000-0000-0000-000000000000">Select agent ...</asp:ListItem>
                </asp:DropDownList>
            </div>
        </div>
        <div class="item">
            <div class="label">
                Price:</div>
            <div class="field">
                <asp:TextBox ID="txtPrice" runat="server"></asp:TextBox></div>
        </div>
        <div class="item">
            <div class="label">
                Start date:</div>
            <div class="field">
                <asp:TextBox ID="txtStartDate" runat="server" CssClass="datepicker"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                    InitialValue="" ControlToValidate="txtStartDate"></asp:RequiredFieldValidator></div>
        </div>
        <div class="item">
            <div class="label">
                Expiration date:</div>
            <div class="field">
                <asp:TextBox ID="txtExpirationDate" runat="server" CssClass="datepicker"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                    InitialValue="" ControlToValidate="txtExpirationDate"></asp:RequiredFieldValidator></div>
        </div>
        <div class="item">
            <div class="label">
                Active:</div>
            <div class="field">
                <asp:CheckBox ID="cbActive" CssClass="checkbox" runat="server"></asp:CheckBox></div>
        </div>
        <div class="item">
            <div class="label">
            </div>
            <div class="field">
                <asp:LinkButton CssClass="button" ID="btnSave" ToolTip="Save button" runat="server"
                    OnClick="btnSave_Click">
                            <span>Save</span>
                </asp:LinkButton>
            </div>
        </div>

        <script type="text/javascript">
            $(function () {
                // Datepicker
                $('.datepicker').datepicker();
            });
        </script>

    </div>
</asp:Content>
